#ifndef BOOK_FORM_H
#define BOOK_FORM_H

#include <QWidget>
#include <QFile>
#include <QFileDialog>
#include <QTextStream>
#include <QScrollBar>
#include <QColor>
#include <QColorDialog>
#include <QMessageBox>
#include <QFont>
#include <QFontDialog>
#include <QTimer>
namespace Ui {
class Book_Form;
}

class Book_Form : public QWidget
{
    Q_OBJECT

public:
    explicit Book_Form(QWidget *parent = 0);
    ~Book_Form();
    void openfile(QString filename,int x);

    QTimer *timer;
private slots:
    void on_pushButton_OpenBook_clicked();              //打开电子书

    void on_pushButton_Close_clicked();             //关闭电子书

    void on_pushButton_set_color_clicked();         //设置字体颜色

    void on_pushButton_set_font_clicked();          //设置字体

    void on_pushButton_background_clicked();        //设置背景颜色

    void on_pushButton_Save_mark_clicked();         //保存书签

    void on_pushButton_open_mark_clicked();         //打开书签

    void post_book_money();
    void on_label_linkActivated(const QString &link);

signals:
    void close_form();                      //关闭按钮槽函数
    pushButton_on_clicked(int temp);
    void book_moeny(int temp);
private:
    Ui::Book_Form *ui;
    QString filepath;


};

#endif // BOOK_FORM_H
